/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
#ifndef WALL_H
#define WALL_H

#include "Object.h"
#include "Shapes.h"
#include "Material.h"


class CWall : public CObject
{
  public:
    static TMaterial WallMaterial;
    
    CWall(CWorld *World, float x1, float y1, float x2, float y2, float width, float height);
    ~CWall();
    
    float x1,x2,y1,y2,width,height;
    
    void Draw();
    
    void Update(float StepSize);
    
    void OnCollision(CPrimitive *primitive, int numc, dContact *contacts, CPrimitive *primitive2);
    
  private:
    CBox *box;
    float angle;
    float length;
};

#endif
